package com.fortune.rainshineservice.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.fortune.rainshinecommon.model.ProductModel;
import com.fortune.rainshinecommon.query.ProductQuery;

@Mapper
public interface ProductMapper extends BaseMapper<ProductModel>{
    int createProduct(ProductModel productModel);

    int updateProduct(ProductModel productModel);

    List<ProductModel> getList(ProductQuery query);

    ProductModel selectByIdWithNan(Integer productId);

    int delete(String productCode);

    String getNameById(Integer productId);
}
